find_package( Qt4 COMPONENTS QtOpenGL QtGui QtCore REQUIRED )
include( ${QT_USE_FILE} )
add_definitions( ${QT_DEFINITIONS} )
file( GLOB_RECURSE srcs ${CMAKE_CURRENT_SOURCE_DIR}/plugins/fhegraphics/*.cpp )
file( GLOB_RECURSE headers ${CMAKE_CURRENT_SOURCE_DIR}/plugins/fhegraphics/*.h )
QT4_WRAP_CPP( mocs ${headers} )
add_library( fhegraphics SHARED ${srcs} ${mocs} )
target_link_libraries( fhegraphics fhe GLU ${QT_LIBRARIES} )
set_target_properties( fhegraphics PROPERTIES PREFIX "" )